package com.felight.list;

/**
 * Name of the flowers are compared and returns integer value.
 * 
 */
import java.util.Comparator;

public class FlowerNameCom implements Comparator<Flower> {
	@Override
	public int compare(Flower o1, Flower o2) {
		int result = o1.name.compareTo(o2.name); // Flower names are compared
		return result;							// and return integer(0,1,or
	}											// -1)
}

